import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import './assets/common.css'
import ElementUI from 'element-ui';
import Vant from 'vant';
import 'element-ui/lib/theme-chalk/index.css';
import 'vant/lib/index.css';
import i18n from './utils/i18n.js'
import dayjs from 'dayjs'
import utils from './utils/index.js'
import Nav from '@/components/nav.vue';
import Foot from '@/components/Foot.vue';
const math = require('mathjs');

Vue.config.productionTip = false
Vue.use(ElementUI, {
	locale: 'en'
});
Vue.use(Vant);
Vue.component('Nav', Nav)


Vue.prototype.$day = dayjs
Vue.prototype.$utils = utils
Vue.prototype.$math = math;


Vue.prototype.$locale = [{
		name: '简体中文',
		locale: 'zh',
	},
	{
		name: 'English',
		locale: 'en',
	},
	{
		name: '繁體中文',
		locale: 'cht',
	},
]

new Vue({
	router,
	store,
	i18n, // i18n
	render: h => h(App)
}).$mount('#app')